package com.nova.android.tvlauncher.web

import android.webkit.WebView
import com.github.lib_base.databinding.ActivityBaseWebBinding
import com_github_lib_base.base.BaseViewModel
import com_github_lib_base.base.BaseWebActivity
import java.util.Locale

class PrivacyPolicyActivity : BaseWebActivity<ActivityBaseWebBinding,BaseViewModel>() {
    override fun provideUrl(): String {
        return when (Locale.getDefault().language) {
            "zh" -> when (Locale.getDefault().country.lowercase()) {
                "tw", "hk", "mo" -> "file:///android_asset/privacy_policy_rTW.html"
                else -> "file:///android_asset/privacy_policy_rCN.html"
            }
            "de" -> "file:///android_asset/privacy_policy_de.html"
            "es" -> "file:///android_asset/privacy_policy_es.html"
            "ja" -> "file:///android_asset/privacy_policy_ja.html"
            "pt" -> "file:///android_asset/privacy_policy_pt.html"
            else -> "file:///android_asset/privacy_policy_en.html"
        }
    }


}